package com.lp.order.controller;

import com.lp.order.message.StreamClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.support.MessageBuilder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Date;

/**
 * @author LIPENGAK
 * @Description: 类描述
 * @date 2018-11-07 22:41
 */
@RestController
public class SendMessageController {


    //@Autowired
    //private StreamClient streamClient;
    //
    //
    //
    //
    //@GetMapping("/sendMessage")
    //public void sendMessage(){
    //    String message = "now : " + new Date();
    //    streamClient.output().send(MessageBuilder.withPayload(message).build());
    //}

}
